import request from '@/utils/request'

//统一字典下拉框查询
export function adminDict(params) {
    return request({
        url: `common/v1/adminDict`,
        params
    })
}

//查询神椰限时打卡活动列表
export function shenyeLimitTimeList(params) {
  return request({
      url: '/shenye/limit/time/list',
      method: 'get',
      params
  })
}

//新增限时打卡活动
export function addShenyeLimitTime(data) {
  return request({
    url: '/shenye/limit/time',
    method: 'post',
    data
  })
}
//编辑 神椰限时任务
export function editShenyeLimitTime(data) {
  return request({
    url: '/shenye/limit/time',
    method: 'put',
    data
  })
}
//查询神椰限时任务详情
export function shenyeLimitTimeDetail(id) {
  return request({
      url: `/shenye/limit/time/detail/${id}`,
      method: 'get',
  })
}

// 查询发行方下拉框
export function getIssuerSelect() {
  return request({
      url: '/shenye/limit/time/issuer/select',
      method: 'get',
      
  })
}

//查询活动订单
export function shenyeLimitTimeOrderList(params) {
  return request({
      url: '/shenye/limit/time/order/list',
      method: 'get',
      params
  })
}
//查询店铺活动资产下拉框
export function getShopCardSelect(params) {
  return request({
      url: '/shenye/limit/time/shop/card/select',
      method: 'get',
      params,
  })
}
//查询店铺活动资产卡信息
export function getShopCardId(data) {
  return request({
      url: '/shenye/limit/time/shop/card',
      method: 'post',
      data
  })
}
//查询店铺下拉框
export function getShopSelect() {
    return request({
        url: `/shenye/limit/time/shop/select`,
        method: 'get',
        
    })
}



